package com.hx.staticState.demo1;

/**
 * @Author： Huathy
 * @ClassPath： com.hx.staticState.demo1.Proxy
 * @Date： 2021-02-04 10:33
 * @Description：
 */
public class Proxy implements Rent {
    private Landlord landlord;

    public Proxy() {
    }

    public Proxy(Landlord landlord) {
        this.landlord = landlord;
    }


    @Override
    public void rent() {
        seeHouse();
        System.out.println("代理出租房子");
        landlord.rent();
    }

    public void seeHouse() {
        System.out.println("代理中介_看房");
    }
}
